#!/usr/bin/env bash
# vim: fdm=marker fmr=[[[,]]] cms=\ #%s

main()
{ #[[[
    if [[ -z $SVCENV_CNFG ]]
    then
        echo "Error: SVCENV_CNFG not set"
        return 1
    fi
    local BIN=seagent
    cd $SOAR_DIR/svcenv/lite/sys/agent
    if [[ ! -x $BIN ]]
    then
        echo "Error: $BIN not found or not executable"
        return 1
    fi
    PATH=.:$PATH
    $BIN
} #]]]

main $@
exit $?
